-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lightning-macros
crate and drop bdk_macros
dependency
#3330
Add lightning-macros
crate and drop bdk_macros
dependency
#3330
Conversation
3eb61e1
to
eda480b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks the same to me as bdk_macros
besides the wasm flags removed 👍
Now pushed a fixup that removes the async trait functionality. While I think there is no real harm in having the original code around, happy to go this way, too. Let me know if I should squash or revert. |
Feel free to squash, then LGTM. |
9b066de
to
1dffe79
Compare
Squashed fixup without further changes. |
Oops, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Total diff looks fine, even if the fixup was squashed into the wrong commit.
Previously, we used the `bdk_macros` dependency for some simple proc macros in `lightning-transaction-sync`. However, post-1.0 BDK doesn't further maintain this crate and will at some point probably yank it together with the old `bdk` crate that was split up. Here, we create a new crate for utility proc macros and ~~steal~~ add what we currently use (slightly modified for the latest `syn` version's API though). In the future we may want to expand this crate, e.g., for some `maybe_async` macros in the context of an `async KVStore` implementation.
1dffe79
to
99ae425
Compare
Grr🤦♂️ Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna land this, only really removed code since @dunxen last looked and its pretty straightforward.
Previously, we used the
bdk_macros
dependency for some simple proc macros inlightning-transaction-sync
. However, post-1.0 BDK doesn't further maintain this crate and will at some point probably yank it together with the oldbdk
crate that was split up.Here, we create a new crate for utility proc macros and
stealadd what we currently use (slightly modified for the latestsyn
version's API though). In the future we may want to expand this crate, e.g., for some further changes to themaybe_async
macros in the context of anasync KVStore
implementation.